package com.example.demo.models;

import com.example.demo.models.base.BaseEntity;
import gaarason.database.annotation.Column;
import gaarason.database.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Repository;

/**
 * @author lucifer
 * @since 2024-01-29-20:05
 */
@Data
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Table(name = "activity_users")
public class ActivityUser extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Column(name = "activity_id",comment = "活动id")
    private String activityId;

    @Column(name = "user_id", comment = "用户id")
    private String userId;

    @Column(name = "status", comment = "状态")
    private Integer status;

    /**
     * auto generator end
     **/
    @Repository
    public static class Model extends BaseModel<ActivityUser, Long> {
        @Override
        protected boolean softDeleting() {
            return true;
        }
    }
}
